package com.dt.app.modules.product.entities;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 鸿源塔基
 * @since 2024-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product")
@ApiModel(value="Product对象", description="")
public class Product implements Serializable {

    private static final long serialVersionUID=1343523534654L;

    @ApiModelProperty(value = "产品项目")
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;

    @ApiModelProperty(value = "种类")
    @TableField("category_id")
    private Integer categoryId;

    @ApiModelProperty(value = "企业")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "名称")
    @TableField("pname")
    private String pname;

    @ApiModelProperty(value = "编码")
    @TableField("pno")
    private String pno;

    @ApiModelProperty(value = "拼音")
    @TableField("pinyin")
    private String pinyin;

    @ApiModelProperty(value = "排序 降序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "1激活 0失效")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "单价单位")
    @TableField("price_dw")
    private String priceDw;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "包安装单价")
    @TableField("price_az")
    private BigDecimal priceAz;

    @ApiModelProperty(value = "成本")
    @TableField("price_cb")
    private BigDecimal priceCb;

    @ApiModelProperty(value = "包安装成本")
    @TableField("price_cbaz")
    private BigDecimal priceCbaz;

    @ApiModelProperty(value = "价格备注")
    @TableField("price_desc")
    private String priceDesc;

    @ApiModelProperty(value = "最后更新时间")
    @TableField("utime")
    private LocalDateTime utime;

    @ApiModelProperty(value = "备注")
    @TableField("msg")
    private String msg;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;
}